﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SMBL
{
    namespace ConfigElement.DBProvider
    {
        /// <summary>
        /// Database Provider Information
        /// @Author: Push
        /// The Element DBProvider in Config.xml
        /// </summary>
        public class DBProviderInfo
        {
            // Identify of the Provider
            private String myName;
            public String Name
            {
                get { return myName; }
                set { myName = value; }
            }

            // TYPE of the Provider
            private ProviderType myType;
            public ProviderType TYPE
            {
                get { return myType; }
                set { myType = value; }
            }

            // Max Connection Number
            private Int64 myMaxConn;
            public Int64 MaxConn
            {
                get { return myMaxConn; }
                set { myMaxConn = value; }
            }

            // Database Name
            private String myDBName;
            public String DBName
            {
                get { return myDBName; }
                set { myDBName = value; }
            }

            // Database Path or URL
            private String myDBPath;
            public String DBPath
            {
                get { return myDBPath; }
                set { myDBPath = value; }
            }

            // User Name used to connect to the database
            private String myUserName;
            public String UserName
            {
                get { return myUserName; }
                set { myUserName = value; }
            }

            // Password used to connect to the database
            private String myPassword;
            public String Password
            {
                get { return myPassword; }
                set { myPassword = value; }
            }
        }
    }
}
